package com.team1.manager.school.service.impl;

import java.io.Serializable;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.team1.manager.school.dao.SchoolDao;
import com.team1.manager.school.entity.School;
import com.team1.manager.school.service.SchoolService;
@Service("schoolService")
public class SchoolServiceImpl implements SchoolService {
	@Resource
	private SchoolDao schoolDao;
	@Override
	public void save(School school) {
		schoolDao.save(school);
	}

	@Override
	public void delete(Serializable id) {
		schoolDao.delete(id);

	}

	@Override
	public void update(School school) {
		schoolDao.update(school);

	}

	@Override
	public School findObjectById(Serializable id) {
		
		return schoolDao.findObjectById(id);
	}

	@Override
	public List<School> findObjects() {
		
		return schoolDao.findObjects();
	}

}
